package cn.b.sky.mes.cm.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

/**
 * Cm_calendarVo.
 * @author zhaoxin01
 * @version 1.0 
 * history 
 * Symbol Date  Person  Note
 * [1]  2016/01/13 zhaoxin01  Generated.
 */
public class Calendar extends ImeCommon {
  /**
   * 工厂编号:nvarchar2(20) <Primary Key>
   */
  private String siteCode;

  /**
   * 日历编号:nvarchar2(20) <Primary Key>
   */
  private String calendarCode;

  /**
   * 日历描述:nvarchar2(60)
   */
  private String calendarText;

  /**
   * 开始日期:date(0)
   */
  private Date startDate;

  /**
   * 结束日期:date(0)
   */
  private Date endDate;

  /**
   * 默认日历模式:nvarchar2(20)
   */
  private String calendarPatternCode;

  private String calendarDaysStr;

  private String calendarPatternText;

  private Integer calendarPatternLock;

  private Date baseDate;

  private List<CalendarDay> calendarDays = new ArrayList<CalendarDay>();

  public Date getBaseDate() {
    return baseDate;
  }

  public void setBaseDate(Date baseDate) {
    this.baseDate = baseDate;
  }

  public String getCalendarPatternText() {
    return calendarPatternText;
  }

  public void setCalendarPatternText(String calendarPatternText) {
    this.calendarPatternText = calendarPatternText;
  }

  public Integer getCalendarPatternLock() {
    return calendarPatternLock;
  }

  public void setCalendarPatternLock(Integer calendarPatternLock) {
    this.calendarPatternLock = calendarPatternLock;
  }

  public String getCalendarDaysStr() {
    return calendarDaysStr;
  }

  public void setCalendarDaysStr(String calendarDaysStr) {
    this.calendarDaysStr = calendarDaysStr;
  }

  public List<CalendarDay> getCalendarDays() {
    return calendarDays;
  }

  public void setCalendarDays(List<CalendarDay> calendarDays) {
    this.calendarDays = calendarDays;
  }

  @Override
  public String getSiteCode() {
    return siteCode;
  }

  @Override
  public void setSiteCode(String siteCode) {
    this.siteCode = siteCode;
  }

  public String getCalendarCode() {
    return StringUtils.upperCase(calendarCode);
  }

  public void setCalendarCode(String calendarCode) {
    this.calendarCode = StringUtils.upperCase(calendarCode);
  }

  public String getCalendarText() {
    return calendarText;
  }

  public void setCalendarText(String calendarText) {
    this.calendarText = calendarText;
  }

  public Date getStartDate() {
    return startDate;
  }

  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  public Date getEndDate() {
    return endDate;
  }

  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }

  public String getCalendarPatternCode() {
    return calendarPatternCode;
  }

  public void setCalendarPatternCode(String calendarPatternCode) {
    this.calendarPatternCode = calendarPatternCode;
  }

}
